<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
	<head>
		<meta charset="UTF-8">
		<title>修改员工信息</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/css/content.css" />
	</head>

	<body>
		<div>
			<div id="head">
				<marquee>彪悍的人生不需要解释，撸起袖子就开干!!!</marquee>
				<table border="1" width="100%" cellspacing="0">
					<tr>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/1.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/2.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/3.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/4.jpg"></th>
						<th><img alt="" src="${pageContext.request.contextPath}/img/one/5.jpg"><br />
							<c:if test="${LOGIN_NAME != null}">
								欢迎${LOGIN_NAME}登录&emsp;
								<a href="logout">注销登录</a>
							</c:if>
						</th>
					</tr>
				</table>
			</div>
			<div class="clfloat" id="left">
				<a href="emp">
					<div class="active">员工管理</div>
				</a>
				<a href="dept">
					<div>部门管理</div>
				</a>
				<a href="#">
					<div>扩展功能</div>
				</a>
			</div>
			<div class="clfloat" id="right">
				<div id="nav">
					首页>>>>员工管理>>>>修改数据
				</div>
				<form action="dept/update">
					<table border="1" cellspacing="0" width="100%">
						<c:forEach items="${list}" var="list">
							<input type="hidden" name="id" value="${list.id}">
						<tr>
							<th>姓名</th>
							<th><input type="text" name="name" value="${list.name}" required="required"></th>
						</tr>
						<tr>
							<th>性别</th>
							<th>
								<select name="sex">
									<c:if test="${list.sex}">
										<option value="m"> 男 </option>
										<option value="f"> 女 </option>
									</c:if>
									<c:if test="${!list.sex}">
										<option value="m"> 男 </option>
										<option value="f"> 女 </option>
									</c:if>
								</select>
							</th>
						</tr>
						<tr>
							<th>住址</th>
							<th><input type="text" name="address" value="${list.address}"></th>
						</tr>
						<tr>
							<th>电话</th>
							<th><input type="text" name="tel" value="${list.tel}" required="required"></th>
						</tr>
						<tr>
							<th>银行卡号</th>
							<th><input type="text" name="card" value="${list.card}" required="required"></th>
						</tr>
						</c:forEach>
						<tr>
							<th colspan="2">
								<input type="submit" value="修改数据">
							</th>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</body>

</html>